/*******************************************************************************
 * Package: com.hngtrust.iir.company.controller.vo
 * Type:    RepVO
 * Date:    2020/11/24 14:36
 *
 * Copyright (c) 2020 HUANENG GUICHENG TRUST CORP.,LTD All Rights Reserved.
 *
 * You may not use this file except in compliance with the License.
 *******************************************************************************/
package com.hngtrust.iir.company.controller.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * VO类
 * @author Chentianyong
 * @date 2021/3/22 14:36
 */
@ApiModel(description = "公司股票信息返回")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CompStockRespVO {
    
    /**
     * id
     */
    @ApiModelProperty(value = "数据ID")
    private Long id;
    
    /**
     * 公司ID
     */
    @ApiModelProperty(value = "公司ID")
    private Long compId;
    
    /**
     * 交易所名称
     */
    @ApiModelProperty(value = "交易所名称")
    private String changeName;
    
    /**
     * 股票名称
     */
    @ApiModelProperty(value = "股票名称")
    private String stockName;
    
    /**
     * 股票代码
     */
    @ApiModelProperty(value = "股票代码")
    private String stockCode;
    
    /**
     * 交易日期
     */
    @ApiModelProperty(value = "交易日期")
    private Date tradeDate;
    
    /**
     * 当前价(元)
     */
    @ApiModelProperty(value = "当前价(元)")
    @JsonProperty
    private BigDecimal pCurrent;
    
    /**
     * 昨收盘价(元)
     */
    @ApiModelProperty(value = "昨收盘价(元)")
    private BigDecimal preClose;
    
    /**
     * 开盘价(元)
     */
    @ApiModelProperty(value = "开盘价(元)")
    @JsonProperty
    private BigDecimal pOpen;
    
    /**
     * 最高价(元)
     */
    @ApiModelProperty(value = "最高价(元)")
    @JsonProperty
    private BigDecimal pHigh;
    
    /**
     * 最低价(元)
     */
    @ApiModelProperty(value = "最低价(元)")
    @JsonProperty
    private BigDecimal pLow;
    
    /**
     * 收盘价(元)
     */
    @ApiModelProperty(value = "收盘价(元)")
    @JsonProperty
    private BigDecimal pClose;
    
    /**
     * 涨跌(元)
     */
    @ApiModelProperty(value = "涨跌(元)")
    @JsonProperty
    private BigDecimal pChange;
    
    /**
     * 涨跌幅(%)
     */
    @ApiModelProperty(value = "涨跌幅(%)")
    private BigDecimal pctChange;
    
    /**
     * 成交量(手)
     */
    @ApiModelProperty(value = "成交量(手)")
    private BigDecimal volume;
    
    /**
     * 成交金额(千元)
     */
    @ApiModelProperty(value = "成交金额(千元)")
    private BigDecimal amount;
    
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    
    private String time;
}
